package com.coderman.basketball.statistics.service;

import com.coderman.basketball.statistics.context.GameDataBO;
import com.coderman.basketball.statistics.mapper.GameDataMapper;
import com.coderman.basketball.statistics.dto.GameDataDTO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Description:
 * date: 2021/5/28
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Service
public class GameDataService {
    @Resource
    private GameDataMapper gameDataMapper;

    @Resource
    private CacheService cacheService;

    public GameDataDTO getByGameId(Long gameId){
        GameDataBO gameDataBO = cacheService.getGameData(gameId);
        if(gameDataBO == null){
            gameDataMapper.getByGameId(gameId);
        }
        return null;
    }



}
